/*
 * @Author: Mcfly
 * @Date: 2021-10-09 17:44:40
 * @LastEditTime: 2021-10-10 11:19:21
 * @LastEditors: Mcfly
 * @Description: 
 * @FilePath: \FTTfly\Filter\ButterWorth.h
 * 本人github:https://github.com/McflyWZX
 */
#ifndef __BUTTERWORTH_H__
#define __BUTTERWORTH_H__

typedef struct{
    float a[3];
    float b[3];
} ButterParameter;

typedef struct{
    float inputButter[3];
    float outputButter[3];
} ButterBufferData;

ButterParameter*  ButterWorth_Init(float sampleFrequent, float cutoffFrequent);
float ButterWorth_Work_LPB(float curr_input, ButterBufferData *Buffer, ButterParameter *Parameter);

#endif
